import React, { Suspense } from 'react'
import { createRoot } from 'react-dom/client'
import App from './App'

const rootElement = document.getElementById('root')

if (rootElement) {
  createRoot(rootElement).render(
    <Suspense fallback={<div>Loading...</div>}>
      <App />
    </Suspense>
  )
}
